package com.ten.mall.vo;

import java.util.ArrayList;
import java.util.List;

public class PrivilegeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PrivilegeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andQuanNameIsNull() {
            addCriterion("quan_name is null");
            return (Criteria) this;
        }

        public Criteria andQuanNameIsNotNull() {
            addCriterion("quan_name is not null");
            return (Criteria) this;
        }

        public Criteria andQuanNameEqualTo(String value) {
            addCriterion("quan_name =", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameNotEqualTo(String value) {
            addCriterion("quan_name <>", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameGreaterThan(String value) {
            addCriterion("quan_name >", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameGreaterThanOrEqualTo(String value) {
            addCriterion("quan_name >=", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameLessThan(String value) {
            addCriterion("quan_name <", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameLessThanOrEqualTo(String value) {
            addCriterion("quan_name <=", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameLike(String value) {
            addCriterion("quan_name like", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameNotLike(String value) {
            addCriterion("quan_name not like", value, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameIn(List<String> values) {
            addCriterion("quan_name in", values, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameNotIn(List<String> values) {
            addCriterion("quan_name not in", values, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameBetween(String value1, String value2) {
            addCriterion("quan_name between", value1, value2, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanNameNotBetween(String value1, String value2) {
            addCriterion("quan_name not between", value1, value2, "quanName");
            return (Criteria) this;
        }

        public Criteria andQuanUrlIsNull() {
            addCriterion("quan_url is null");
            return (Criteria) this;
        }

        public Criteria andQuanUrlIsNotNull() {
            addCriterion("quan_url is not null");
            return (Criteria) this;
        }

        public Criteria andQuanUrlEqualTo(String value) {
            addCriterion("quan_url =", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlNotEqualTo(String value) {
            addCriterion("quan_url <>", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlGreaterThan(String value) {
            addCriterion("quan_url >", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlGreaterThanOrEqualTo(String value) {
            addCriterion("quan_url >=", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlLessThan(String value) {
            addCriterion("quan_url <", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlLessThanOrEqualTo(String value) {
            addCriterion("quan_url <=", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlLike(String value) {
            addCriterion("quan_url like", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlNotLike(String value) {
            addCriterion("quan_url not like", value, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlIn(List<String> values) {
            addCriterion("quan_url in", values, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlNotIn(List<String> values) {
            addCriterion("quan_url not in", values, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlBetween(String value1, String value2) {
            addCriterion("quan_url between", value1, value2, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanUrlNotBetween(String value1, String value2) {
            addCriterion("quan_url not between", value1, value2, "quanUrl");
            return (Criteria) this;
        }

        public Criteria andQuanCodeIsNull() {
            addCriterion("quan_code is null");
            return (Criteria) this;
        }

        public Criteria andQuanCodeIsNotNull() {
            addCriterion("quan_code is not null");
            return (Criteria) this;
        }

        public Criteria andQuanCodeEqualTo(String value) {
            addCriterion("quan_code =", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeNotEqualTo(String value) {
            addCriterion("quan_code <>", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeGreaterThan(String value) {
            addCriterion("quan_code >", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeGreaterThanOrEqualTo(String value) {
            addCriterion("quan_code >=", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeLessThan(String value) {
            addCriterion("quan_code <", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeLessThanOrEqualTo(String value) {
            addCriterion("quan_code <=", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeLike(String value) {
            addCriterion("quan_code like", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeNotLike(String value) {
            addCriterion("quan_code not like", value, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeIn(List<String> values) {
            addCriterion("quan_code in", values, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeNotIn(List<String> values) {
            addCriterion("quan_code not in", values, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeBetween(String value1, String value2) {
            addCriterion("quan_code between", value1, value2, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanCodeNotBetween(String value1, String value2) {
            addCriterion("quan_code not between", value1, value2, "quanCode");
            return (Criteria) this;
        }

        public Criteria andQuanOrderIsNull() {
            addCriterion("quan_order is null");
            return (Criteria) this;
        }

        public Criteria andQuanOrderIsNotNull() {
            addCriterion("quan_order is not null");
            return (Criteria) this;
        }

        public Criteria andQuanOrderEqualTo(Integer value) {
            addCriterion("quan_order =", value, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderNotEqualTo(Integer value) {
            addCriterion("quan_order <>", value, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderGreaterThan(Integer value) {
            addCriterion("quan_order >", value, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("quan_order >=", value, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderLessThan(Integer value) {
            addCriterion("quan_order <", value, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderLessThanOrEqualTo(Integer value) {
            addCriterion("quan_order <=", value, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderIn(List<Integer> values) {
            addCriterion("quan_order in", values, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderNotIn(List<Integer> values) {
            addCriterion("quan_order not in", values, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderBetween(Integer value1, Integer value2) {
            addCriterion("quan_order between", value1, value2, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("quan_order not between", value1, value2, "quanOrder");
            return (Criteria) this;
        }

        public Criteria andQuanFatherIsNull() {
            addCriterion("quan_father is null");
            return (Criteria) this;
        }

        public Criteria andQuanFatherIsNotNull() {
            addCriterion("quan_father is not null");
            return (Criteria) this;
        }

        public Criteria andQuanFatherEqualTo(Integer value) {
            addCriterion("quan_father =", value, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherNotEqualTo(Integer value) {
            addCriterion("quan_father <>", value, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherGreaterThan(Integer value) {
            addCriterion("quan_father >", value, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherGreaterThanOrEqualTo(Integer value) {
            addCriterion("quan_father >=", value, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherLessThan(Integer value) {
            addCriterion("quan_father <", value, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherLessThanOrEqualTo(Integer value) {
            addCriterion("quan_father <=", value, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherIn(List<Integer> values) {
            addCriterion("quan_father in", values, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherNotIn(List<Integer> values) {
            addCriterion("quan_father not in", values, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherBetween(Integer value1, Integer value2) {
            addCriterion("quan_father between", value1, value2, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanFatherNotBetween(Integer value1, Integer value2) {
            addCriterion("quan_father not between", value1, value2, "quanFather");
            return (Criteria) this;
        }

        public Criteria andQuanDetailIsNull() {
            addCriterion("quan_detail is null");
            return (Criteria) this;
        }

        public Criteria andQuanDetailIsNotNull() {
            addCriterion("quan_detail is not null");
            return (Criteria) this;
        }

        public Criteria andQuanDetailEqualTo(String value) {
            addCriterion("quan_detail =", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailNotEqualTo(String value) {
            addCriterion("quan_detail <>", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailGreaterThan(String value) {
            addCriterion("quan_detail >", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailGreaterThanOrEqualTo(String value) {
            addCriterion("quan_detail >=", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailLessThan(String value) {
            addCriterion("quan_detail <", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailLessThanOrEqualTo(String value) {
            addCriterion("quan_detail <=", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailLike(String value) {
            addCriterion("quan_detail like", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailNotLike(String value) {
            addCriterion("quan_detail not like", value, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailIn(List<String> values) {
            addCriterion("quan_detail in", values, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailNotIn(List<String> values) {
            addCriterion("quan_detail not in", values, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailBetween(String value1, String value2) {
            addCriterion("quan_detail between", value1, value2, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanDetailNotBetween(String value1, String value2) {
            addCriterion("quan_detail not between", value1, value2, "quanDetail");
            return (Criteria) this;
        }

        public Criteria andQuanMarkIsNull() {
            addCriterion("quan_mark is null");
            return (Criteria) this;
        }

        public Criteria andQuanMarkIsNotNull() {
            addCriterion("quan_mark is not null");
            return (Criteria) this;
        }

        public Criteria andQuanMarkEqualTo(String value) {
            addCriterion("quan_mark =", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkNotEqualTo(String value) {
            addCriterion("quan_mark <>", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkGreaterThan(String value) {
            addCriterion("quan_mark >", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkGreaterThanOrEqualTo(String value) {
            addCriterion("quan_mark >=", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkLessThan(String value) {
            addCriterion("quan_mark <", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkLessThanOrEqualTo(String value) {
            addCriterion("quan_mark <=", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkLike(String value) {
            addCriterion("quan_mark like", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkNotLike(String value) {
            addCriterion("quan_mark not like", value, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkIn(List<String> values) {
            addCriterion("quan_mark in", values, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkNotIn(List<String> values) {
            addCriterion("quan_mark not in", values, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkBetween(String value1, String value2) {
            addCriterion("quan_mark between", value1, value2, "quanMark");
            return (Criteria) this;
        }

        public Criteria andQuanMarkNotBetween(String value1, String value2) {
            addCriterion("quan_mark not between", value1, value2, "quanMark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}